/*
 * @Author: your name
 * @Date: 2021-11-08 23:52:03
 * @LastEditTime: 2021-12-31 16:12:55
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue-antd-admin-yarn\src\router\async\config.async.js
 */
import routerMap from './router.map'
import { parseRoutes } from '@/utils/routerUtil'

// 异步路由配置
const routesConfig = [
  'login',
  'root',
  {
    router: 'exp404',
    path: '*',
    name: '404'
  },
  {
    router: 'exp403',
    path: '/403',
    name: '403'
  }, 
  
  // {
  //   router: 'teachingAdd',
  //   path: '/teachingAdd',
  //   authority: {
  //     permission: "admin",
  //   },
  //   component: () => import('@/pages/enterprise/TeachingAdd')
  // },

]

const options = {
  routes: parseRoutes(routesConfig, routerMap)
}

export default options
